package com.wench.design.pattern.strategy;

/**
 * 环境类
 *
 * @author wench
 */
public class SaleMan {

    private Strategy strategy;

    public SaleMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void saleManShow() {
        strategy.show();
    }
}
